//
//  BaseViewController.h
//  SpeedBorrow
//
//  Created by  刘尚威 on 16/8/26.
//  Copyright © 2016年  刘尚威. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XLAppMacro.h"
#import "XLUserInfo.h"
#import "XLHTTPRequest.h"
#import <FunUIBarButtonItem.h>
@interface XLBaseViewController : UIViewController

/** 亿维会诊ID*/
@property (nonatomic, copy) NSString *emergencyTreatmentID;

/** 右侧UIBarButtonItem*/
@property (nonatomic, strong) FunUIBarButtonItem *rightBarButtonItem;

/** 右侧UIBarButtonItem是否可以点击*/
@property (nonatomic, assign) BOOL rightBarButtonItemEnable;

/** 初始化rightBarButtonItem*/
- (void)setupRightBarItemWithTitle:(NSString *)buttonTitle action:(SEL)target;

/**数据*/
-(void)initData;

/**UI*/
-(void)initInterface;

/**错误提示信息*/
- (void)exitLogin:(NSString *)msg;
/**显示登录提示*/
- (void)showLoginAlert;
#pragma mark - 提示
- (void)showHUD;
- (void)dismissHUD;
- (void)showSuccessWithStatus:(NSString *)status;
- (void)showErrorWithStatus:(NSString *)status;
- (void)showWithStatus:(NSString *)status;
- (void)showInfoWithStatus:(NSString *)status;
@end
